package units.assembly 
{
	import base.constants.Colors;
	import base.GObject;
	import base.GShape;
	import tweens.Tween;
	
	
	public class ProgBar extends GObject 
	{
		private var seconds:uint;
		
		public function start():void
		{
			var t:Tween = new Tween(this, { width: { start:this.width, end:60, steps:24*seconds }}, Tween.circleInOut);
			t.start();
		}
		
		public function ProgBar(dx:Number, dy:Number, sec:uint) 
		{
			seconds = sec;
			var g:GShape = new GShape();
			g.draw(0, 6, .5, Colors.Blue, .6, Colors.Green, .3);
			super(g);
			x = dx;
			y = dy;
		}
		
	}

}